import React, {Component, createContext} from "react";
let {Provider,Consumer} = createContext()

export default class MyDetalisValue extends Component {
    render() {
        return (
            <div>
                <Provider value={this.props.info}></Provider>
                {this.props.children}
            </div>
        )
    }
}
